<?php
/**
 * Created by PhpStorm.
 * User: crstu
 * Date: 2016/6/17
 * Time: 16:57
 */

namespace backend\models;


use yii\base\Model;

class BookedChargeForm extends Model
{

    public $tradeID;
    public $card;
    public $order;
    public $money;

    public function attributeLabels()
    {
        return [
            'tradeID' => '用户交易号',
            'money' => '入账金额',
            'card' => '用户转账银行卡号',
            'order' => '银行流水号',
        ];
    }

    public function rules()
    {
        return [
            [['tradeID', 'money', 'card', 'order'], 'required'],
            [['tradeID', 'money'], 'number'],
            ['card', 'string', 'max'=>50],
            ['order', 'string', 'max'=>50],
        ];
    }
}